import request from '@/utils/request'

// 查询患者列表列表
export function listUser(query) {
  return request({
    url: '/business/user/list',
    method: 'get',
    params: query
  })
}

// 查询患者列表详细
export function getUser(id) {
  return request({
    url: '/business/user/query/' + id,
    method: 'get'
  })
}

// 新增患者列表
export function addUser(data) {
  return request({
    url: '/business/user/add',
    method: 'post',
    data: data
  })
}

// 修改患者列表
export function updateUser(data) {
  return request({
    url: '/business/user/edit',
    method: 'post',
    data: data
  })
}

// 删除患者列表
export function delUser(id) {
  return request({
    url: '/business/user/remove/' + id,
    method: 'delete'
  })
}

// 导出患者列表
export function exportUser(query) {
  return request({
    url: '/business/user/export',
    method: 'get',
    params: query
  })
}
